package pers.zb.cloud.web.mall.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import pers.zb.cloud.web.mall.service.hystrix.UserServiceHystrix;

@FeignClient(value = "sea-cloud-service-user", fallback = UserServiceHystrix.class)
public interface UserService {

    @RequestMapping(value = "/user/user/{name}",method = RequestMethod.GET)
    public String getUserInfoByName(@PathVariable("name") String name);
}
